<?php
use \yii\helpers\Html;
use common\components\helpers\Util;
?>
<div class="yx-praise-list-box yx-praise-box yx-radius2 zx-min-height" style="padding: 0 20px">
  <div class="modal-body">
    <h3 class="yx-font13 yx-pb6">发卡人信息：</h3>
    <table id="tablesaw" class="tablesaw table yx-table1 yx-table3 table-striped with-check"  >
        <thead>
        <tr class="yx-bgd2f6ec">
            <th><?=\Yii::t('zhtfrontend','发卡人');?></th>
            <th><?=\Yii::t('zhtfrontend','手机号');?></th>
            <th><?=\Yii::t('zhtfrontend','发卡数量');?></th>
            <th><?=\Yii::t('zhtfrontend','激活人数');?></th>
            <th><?=\Yii::t('zhtfrontend','报名人数');?></th>
            <th><?=\Yii::t('zhtfrontend','转化人数');?></th>
            <th><?=\Yii::t('zhtfrontend','续费人数');?></th>
            <th><?=\Yii::t('zhtfrontend','操作');?></th>
        </thead>
        <tr>
            <td><?=isset($model->isuserinfo->contact)?$model->isuserinfo->contact:''?></td>
            <td><?=isset($model->isuserinfo->mobile)?$model->isuserinfo->mobile:''?></td>
            <td><?=$model->number?></td>
            <td><?=$data['activationCount']?></td>
            <td><?=$data['signupCount']?></td>
            <td><?=$data['conversionCount']?></td>
            <td><?=$data['renewCount']?></td>
            <td><a data-url="<?=\common\components\helpers\Fun::url(['cardsend/view','id'=>$model->id,'types'=>'send'])?>" rel="dialog-show-iframe" class="btn yx-radius2 yx-d-card yx-bg94d5a2" data-size="800*500" data-name="查看">查看</a></td>
        </tr>
    </table>
    <h3 class="yx-font13 yx-pb6">二次发卡人信息：</h3>
        <table id="tablesaw" class="tablesaw table yx-table1 yx-table3 table-striped with-check"  >
            <thead>
            <tr class="yx-bgd2f6ec">
                <th><?=\Yii::t('zhtfrontend','二次发卡人');?></th>
                <th><?=\Yii::t('zhtfrontend','发卡数量');?></th>
                <th><?=\Yii::t('zhtfrontend','激活人数');?></th>
                <th><?=\Yii::t('zhtfrontend','报名人数');?></th>
                <th><?=\Yii::t('zhtfrontend','转化人数');?></th>
                <th><?=\Yii::t('zhtfrontend','续费人数');?></th>
                <th><?=\Yii::t('zhtfrontend','操作');?></th>
            </thead>
            <?php if(!empty($reSendData)) { ?>
                <?php foreach ($reSendData as $send) {?>
                    <tr>
                        <td><?=$send['salesman']?></td>
                        <td><?=$send['number']?></td>
                        <td><?=$send['activationCount']?></td>
                        <td><?=$send['signupCount']?></td>
                        <td><?=$send['conversionCount']?></td>
                        <td><?=$send['renewCount']?></td>
                        <td><a data-url="<?=\common\components\helpers\Fun::url(['cardsend/view','id'=>$send['id'],'types'=>'resend'])?>" rel="dialog-show-iframe" class="btn yx-radius2 yx-d-card yx-bg94d5a2" data-size="800*500" data-name="查看">查看</a></td>
                    </tr>
                    <?php } ?>
            <?php } ?>
        </table>
  </div>
</div>
